package com.qili.entity.base;

/**
 * @author liuyang
 * @date 2021/3/29
 * @description  表单类型枚举类
 */
public enum FormType {

    ZZCBBZ("110001","正中参编标准"),
    ZL("110002","专利"),
    RZ("110003","软著"),
    JCDLBT("110004","集成电路布图"),
    LW("110005","论文"),
    SZ("110006","书著"),
    KYXMK("110007","科研项目库");


    private String code;
    private String desc;

    private FormType(String code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode(){
        return code;
    }

    public String getDesc(){
        return desc;
    }

    public void setCode(String code){
        this.code = code;
    }

    public void setDesc(String desc){
        this.desc = desc;
    }

    public static FormType getFormType(String code){
        for(FormType formType : FormType.values()){
            if(formType.getCode().equals(code)){
                return formType;
            }
        }
        return null;
    }

}
